package com.wiscamp.ninechapters.problems.adapter.items;

import com.wiscamp.ninechapters.ddd.PersistenceObject;
import lombok.Data;

/**
 * 问题选项
 */
@Data
public class QuestionOptionDto implements PersistenceObject {


    /**
     * 选项编号
     */
    private long optionId = 0;

    /**
     * 题编号
     */
    private long problemId = 0;

    /**
     * 问题编号
     */
    private long questionId = 0;

    /**
     * 选项序号
     */
    private int optionIndex = 0;

    /**
     * 问题超文本内容
     */
    private String optionHypertext = "";

    /**
     * 是否正确答案
     */
    private boolean correctAnswer = false;

    /**
     * 锚点位置
     */
    private int anchorLocation = 0;

    /**
     * 选项分组序号
     */
    private int optionGroupIndex = 0;

    /**
     * 操作：CREATE / UPDATE / DELETE
     */
    private String action = "NONE";
}